package de.koller.worlders.engine.tiles.landscape.generator.universe;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.awt.image.BufferedImage;

public class PlanetShape implements IUniverseGenerator {

	private int shapeColor = 0xff000000;
	
	public void generateEllipse( BufferedImage map, float ox, float oy ) {
		Graphics2D g = map.createGraphics();
		g.setColor( new Color( shapeColor ) );
		
		g.draw( new Ellipse2D.Double( ox, oy, map.getWidth() - ox*2, map.getHeight() - oy*2 ) );
		g.fill( new Ellipse2D.Double( ox, oy, map.getWidth() - ox*2, map.getHeight() - oy*2 ) );
	}

	@Override
	public void setBorderColor( int color ) {
		shapeColor = color;
	}	
	
}
